.class public Lcn/cheln/explorer/cpnt/adapter/ColorInterchangedAdapter;
.super Lcn/cheln/support/adapter/MapAdapter;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcn/cheln/support/adapter/d;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcn/cheln/support/adapter/MapAdapter;-><init>(Landroid/content/Context;Lcn/cheln/support/adapter/d;)V

    return-void
.end method


# virtual methods
.method protected final a(Ljava/lang/Object;ILandroid/view/View;)V
    .locals 6

    const/4 v3, 0x0

    const/4 v2, 0x1

    const-string v5, "#ffffff"

    const-string v4, "#ebebeb"

    add-int/lit8 v0, p2, 0x1

    rem-int/lit8 v0, v0, 0x2

    if-nez v0, :cond_0

    if-eqz p2, :cond_0

    move v0, v2

    :goto_0
    invoke-virtual {p0}, Lcn/cheln/explorer/cpnt/adapter/ColorInterchangedAdapter;->getCount()I

    move-result v1

    rem-int/lit8 v1, v1, 0x2

    if-nez v1, :cond_1

    invoke-virtual {p0}, Lcn/cheln/explorer/cpnt/adapter/ColorInterchangedAdapter;->getCount()I

    move-result v1

    if-eq v1, v2, :cond_1

    move v1, v2

    :goto_1
    if-nez v1, :cond_3

    if-eqz v0, :cond_2

    const-string v0, "#ebebeb"

    move-object v0, v4

    :goto_2
    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    :goto_3
    invoke-virtual {p3, v0}, Landroid/view/View;->setBackgroundColor(I)V

    invoke-super {p0, p1, p2, p3}, Lcn/cheln/support/adapter/MapAdapter;->a(Ljava/lang/Object;ILandroid/view/View;)V

    return-void

    :cond_0
    move v0, v3

    goto :goto_0

    :cond_1
    move v1, v3

    goto :goto_1

    :cond_2
    const-string v0, "#ffffff"

    move-object v0, v5

    goto :goto_2

    :cond_3
    if-eqz v0, :cond_4

    const-string v0, "#ffffff"

    move-object v0, v5

    :goto_4
    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    goto :goto_3

    :cond_4
    const-string v0, "#ebebeb"

    move-object v0, v4

    goto :goto_4
.end method
